<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.hbyj.hbm.vo.*"%>
<%@page import="com.hbyj.db.function.DbTools;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Members mbInfo = (Members)request.getSession().getAttribute("SysUser");
	Departments deptm =new Departments();
	try{
		deptm = mbInfo.getDepartments();
	}catch(Exception e){
		 response.sendRedirect("login.jsp");
		 return;
	}
	deptm =  mbInfo.getDepartments();//拿到单位部门信息
	DepartmentCategory deptmc = deptm.getDepartmentCategory();
	String userDep = deptmc.getName();
	Set set = mbInfo.getMemberRoles();
	Iterator it = set.iterator();
	MemberRole mr = (MemberRole)it.next();
	Roles role = mr.getRoles();//拿到角色信息
	String roleName = role.getName();
	String userName = mbInfo.getEmpName();
	String userDW = "";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">  
  <head>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>湖北省地质灾害应急调查系统</title>
	<script src="lib/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="lib/jquery-ui-1.8.17.custom.min.js" type="text/javascript"></script>
	<script src="lib/jquery_dlg/lhgdialog.js" type="text/javascript"></script>
	 <script src="lib/OpenLayers.debug.js" type="text/javascript"></script>
	 <script src="lib/jquery.form.js" type="text/javascript"></script>
    <script src="lib/zdclient.js" type="text/javascript"></script>
    <link rel="stylesheet" href="style/jquery-ui-1.7.3.custom.css" type="text/css"></link>
    <script src="js/secondfuncbar.js" type="text/javascript"></script>
    <script src="js/function/yjdc5jbqkQuery.js" type="text/javascript"></script>
     <script src="js/sketch/newsketch.js" type="text/javascript"></script>
     <script src="js/sketch/querysketch.js" type="text/javascript"></script>
    <script src="js/bfuncbar.js" type="text/javascript"></script>
    <script src="js/function/yjdc1jbxx.js" type="text/javascript"></script>
    <script src="js/function/yjdc1kb.js" type="text/javascript"></script>
    <script src="js/function/yjdc3jbxx.js" type="text/javascript"></script>
    <script src="js/function/yjdc4dcbg.js" type="text/javascript"></script>
    <script src="js/function/yjdc4jb.js" type="text/javascript"></script>
    <script src="js/forgpsfunction.js" type="text/javascript"></script>
    <script src="js/forgpslinequery.js" type="text/javascript"></script>
    <script src="js/init.js" type="text/javascript"></script>
     <script src="js/function/yjdc4jbqk.js" type="text/javascript"></script>
       <script src="js/function/wodeweizhiDlg.js" type="text/javascript"></script>
       <script src="js/function/kaishidingweiDlg.js" type="text/javascript"></script>
        <script src="js/function/yjdc5ryd.js" type="text/javascript"></script>
        <script src="js/zhdQueryForYjdc5jbqk.js" type="text/javascript"></script>
         <script src="js/wdwzCaseJsp.js" type="text/javascript"></script>
         <script src="js/ksdwCaseJsp.js" type="text/javascript"></script>
    <script src="js/minbar.js" type="text/javascript"></script>
    <script src="js/util.js" type="text/javascript"></script>
    <script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
    
    <script src="js/NestFramedCloud.js" type="text/javascript"></script>
	
    <script src="js/maplocationutil.js" type="text/javascript"></script>
	
    <link href="lib/jquery_dlg/skins/blue.css" rel="stylesheet" type="text/css"></link>
	<link href="style/style.css" rel="stylesheet" type="text/css"></link>
	<link href="style/index.css"  rel="stylesheet" type="text/css"/>
	
	<script type="text/javascript">
		$(document).ready(init);
	</script>
  </head>
  
  <body style="width:797px;height:482px;padding:1px;margin:0px;font-family: 微软雅黑;overflow-x:hidden;" >
	<div id="indexPageDiv" style="width:797px;height:482px;position:absolute;left:0px;top:0px;">
		<div id="logoDiv" style="position:absolute;width:550px;height:73px;background-image: url('image/index/logo.gif');background-repeat: no-repeat;background-position: -30px,0"></div>
		<div id="userInfoPanel" style="position:absolute;left:600px;top:4px;width:150px;height:60px;border: 1px solid #FFCA95;background:#FFFFDF;font-size:12px;" >
  			<label style="margin-left:5px;">欢迎您：</label><label id="userDiv"><%=userName %></label>
  			<br/>
  			<label style="margin-left:5px;">单&nbsp;&nbsp;&nbsp;位：</label><label><%=userDep %></label>
  			<br/>
  			<label style="margin-left:5px;">角&nbsp;&nbsp;&nbsp;色：</label><label  id="roleName"><%=roleName %></label>
  			 <a style="color:#aaccaa" href="userUserExit.shtml" target="_self">退出系统</a>
  		</div>
  		<div class="bbar" id="bFuncBar">
  			<img src="image/index/BuzzyBee.png"  style="float:left;margin-left:5px;margin-right:10px;" width="30px" height="30px"/>
  			<div id="bFuncContentDiv" style="float:left;height:30px;"></div>
  		</div>
  		<div id="toolbar">
			<div title="放大" id="zoomIn" class="operator opZoomIn" ></div>
			<div title="缩小" id="zoomOut" class="operator opZoomOut" ></div>
			<div title="平移" id="pan" class="operator opPan" ></div>
			<div title="复位" id="restore" class="operator opRestore"></div>
		</div>
		<div class="secondDiv">
			<div id="secondaryImageDiv" class="secondaryFuncBarShow"></div>
			<div id="secondContentDiv" class="secondContentDiv"></div>
		</div>
		<div id="map" style="width:100%;height:380px;position:absolute;top:100px;left:0px;"></div>
		<div id="minDlgBar"></div>
		<div id="gpsDivBar">
			<input type="button" id="qidonggps" value="启动GPS" style="font-size: 11px;font-family: 微软雅黑;cursor: pointer;"/>
			<input type="button" id="wodeweizhi" value="我的位置" style="font-size: 11px;font-family: 微软雅黑;cursor: pointer;"/>
			<input type="button" id="kaishidingwei" value="开始定位" style="font-size: 11px;font-family: 微软雅黑;cursor: pointer;"/>
			<input type="button" id="jieshudingwei" value="结束定位" disabled="disabled" style="font-size: 11px;font-family: 微软雅黑;cursor: pointer;"/>
			<input type="button" id="clearweizhi" value="清除位置" style="font-size:11px;font-family:微软雅黑;cursor:pointer;"/>
		</div>
	</div>
  </body>
</html>
